jQuery(document).ready(function($) {
	$('.star.rating').rating('enable');

	$('.delete').on('click', function(event) {
		event.preventDefault();
		alert($(this).parent('.actions').siblings('.metadata').children('.ui.rating').rating('getRating'));
	});
});